libmslog_xilinx_PATH=/home/sugao/lin
libmslog_xilinx_CC=${libmslog_xilinx_PATH}/bin/arm-xilinx-linux-gnueabi-gcc
libmslog_xilinx_SRC=${C_SRC}
libmslog_xilinx_CFLAGS=${C_INCLUDE} ${CFLAGS_SHARE} 

xilinx:libmslog_xilinx install_xilinx
libmslog_xilinx: 
	mkdir -p $(OUT_LIB)
	mkdir -p $(OUT_INCLUDE)
	cp -fr src/*.h $(OUT_INCLUDE)
	$($@_CC)  $($@_SRC)  $($@_CFLAGS)  -o $(OUT_LIB)/$(PROGRAM_NAME).so 
install_xilinx: 
	mkdir -p  ${prefix_xilinx}/lib/ 
	mkdir -p  ${prefix_xilinx}/include/   
	mkdir -p  ${prefix_xilinx}/lib/pkgconfig/ 
	cp -fr $(OUT_LIB)/$(PROGRAM_NAME).so      ${prefix_xilinx}/lib/     
	cp -fr $(OUT_INCLUDE) 	                  ${prefix_xilinx}/include/	     
	cp -fr platform/$(PROGRAM_NAME)_xilinx.pc         ${prefix_xilinx}/lib/pkgconfig/
uninstall_xilinx:
	rm -fr ${prefix_xilinx}/lib/$(PROGRAM_NAME).so 
	rm -fr ${prefix_xilinx}/include/$(PROGRAM_NAME)
	rm -fr ${prefix_xilinx}/lib/pkgconfig/$(PROGRAM_NAME)_xilinx.pc		
